<?php
namespace app\agent\model;

use think\Model;

class AgentLog extends Model
{
    protected $pk = 'log_id';
    protected $createTime = 'log_time';
    protected $autoWriteTimestamp = true;
    protected $type = [
        'log_time' => 'timestamp',
    ];
    public function manage(){
        return $this->belongsTo('app\common\model\Agents','log_agent','age_id');
    }

}